package com.beyondsoft.users.dao;

import java.util.List;
import com.beyondsoft.common.core.model.Users;
import com.beyondsoft.common.core.model.vo.UsersSearchVO;
import com.beyondsoft.common.core.model.dto.UsersDTO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * users 数据访问接口
 * @date 2019-12-5 11:17:00
 * @author codeBuilder
 */
@Repository
public interface UsersMapper {

   /**
	 * @Description 根据条件查询Users 返回一个list集合
	 * @param usersSearchVO
	 * @return List<UsersDTO>
	 * @date 2019-12-5 11:17:00
	 * @author codeBuilder
	 */
	List<UsersDTO> page(UsersSearchVO usersSearchVO);

	/**
	 * @Description 根据条件查询Users 返回一个list集合
	 * @param users
	 * @return List<Users>
	 * @date 2019-12-5 11:17:00
	 * @author codeBuilder
	 */
	List<Users> find(Users users);

	/**
	 * @Description 根据Id查询Users
	 * @param id
	 * @return UsersDTO
	 * @date 2019-12-5 11:17:00
	 * @author codeBuilder
	 */
	UsersDTO findOne(@Param("id") Long id);

    /**
	 * @Description 添加Users
	 * @param users
	 * @return int
	 * @date 2019-12-5 11:17:00
	 * @author codeBuilder
	 */
	int insert(Users users);

	/**
	 * @Description 修改Users
	 * @param users
	 * @return int
	 * @date 2019-12-5 11:17:00
	 * @author codeBuilder
	 */
	int update(Users users);

	/**
	 * @Description 删除Users
	 * @param id
	 * @return int
	 * @date 2019-12-5 11:17:00
	 * @author codeBuilder
	 */
	int delete(@Param("id") Long id);

}


